--DO NOT MODIFY THIS FILE. IT IS ALWAYS OVERWRITTEN ON GENERATION.
--Audit Triggers For Version 0.0.0.0

--##SECTION BEGIN [AUDIT TRIGGERS]

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Category]
if exists(select * from sysobjects where name = '__TR_Category__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Category__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Category__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Category__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Category__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Category__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Customer]
if exists(select * from sysobjects where name = '__TR_Customer__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Customer__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Customer__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Customer__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Customer__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Customer__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Employee]
if exists(select * from sysobjects where name = '__TR_Employee__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Employee__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Employee__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Employee__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Employee__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Employee__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[EmployeeTerritory]
if exists(select * from sysobjects where name = '__TR_EmployeeTerritory__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_EmployeeTerritory__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_EmployeeTerritory__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_EmployeeTerritory__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_EmployeeTerritory__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_EmployeeTerritory__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Order]
if exists(select * from sysobjects where name = '__TR_Order__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Order__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Order__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Order__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Order__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Order__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[OrderDetail]
if exists(select * from sysobjects where name = '__TR_OrderDetail__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_OrderDetail__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_OrderDetail__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_OrderDetail__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_OrderDetail__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_OrderDetail__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Product]
if exists(select * from sysobjects where name = '__TR_Product__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Product__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Product__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Product__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Product__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Product__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Region]
if exists(select * from sysobjects where name = '__TR_Region__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Region__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Region__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Region__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Region__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Region__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Shipper]
if exists(select * from sysobjects where name = '__TR_Shipper__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Shipper__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Shipper__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Shipper__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Shipper__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Shipper__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Supplier]
if exists(select * from sysobjects where name = '__TR_Supplier__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Supplier__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Supplier__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Supplier__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Supplier__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Supplier__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[SystemUser]
if exists(select * from sysobjects where name = '__TR_SystemUser__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_SystemUser__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_SystemUser__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_SystemUser__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_SystemUser__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_SystemUser__DELETE]
GO

--DROP ANY AUDIT TRIGGERS FOR [dbo].[Territory]
if exists(select * from sysobjects where name = '__TR_Territory__INSERT' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Territory__INSERT]
GO
if exists(select * from sysobjects where name = '__TR_Territory__UPDATE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Territory__UPDATE]
GO
if exists(select * from sysobjects where name = '__TR_Territory__DELETE' AND xtype = 'TR')
DROP TRIGGER [dbo].[__TR_Territory__DELETE]
GO

--##SECTION END [AUDIT TRIGGERS]

